package com.example.taobaou.utils;

import android.content.Context;
import android.content.Intent;

import com.example.taobaou.model.domain.IBsaeInfo;
import com.example.taobaou.presenter.impl.TicketPresenterImpl;
import com.example.taobaou.ui.activity.TicketActivity;

public class TicketUtil {

    public static void toTicketPage(Context context, IBsaeInfo bsaeInfo){
        String title = bsaeInfo.getTitle();
        String url = bsaeInfo.getUrl();
        String cover = bsaeInfo.getCover();
        TicketPresenterImpl ticketPresenter = PresenterManager.getInstance().getTicketPresenter();
        ticketPresenter.getTicket(title,url,cover);
        context.startActivity(new Intent(context, TicketActivity.class));
    }
}
